Create a fulfillment.
Create a fulfillment for the specified order and line items.
The fulfillment's status depends on the line items in the order:
-
If the line items in the fulfillment use a manual or custom fulfillment service, then the status of the returned fulfillment will be set immediately.
-
If the line items use an external fulfillment service, then they will be queued for fulfillment and the status will be set to pending until the external fulfillment service has been invoked.
A fulfillment might then transition to open, which implies it is being processed by the service, before transitioning to success when the items have shipped. If you don't specify line item IDs, then all unfulfilled and partially fulfilled line items for the order will be fulfilled. However, if an order is refunded or if any of its individual line items are refunded, then the order can't be fulfilled.
Path parameters
Order ID
Request body
Example request
{
"fulfillment": {
"line_items": [
{
"id": 1234,
"quantity": 1
}
],
"service": "ali-dropship-connector",
"tracking_company": "17track.net",
"tracking_number": "LO55960699CN",
"tracking_url": "https://t.17track.net/en#nums=LO55960699CN",
"tracking_urls": [
"https://t.17track.net/en#nums=LO55960699CN"
]
}
}Response
OK
Example response
{
"id": 255858046,
"name": "255858046",
"notify_customer": true,
"order_id": 450789469,
"service": "255858046",
"shipment_status": "confirmed",
"status": "255858046",
"tracking_company": "4PX",
"tracking_number": "1Z2345",
"tracking_numbers": [
"112345Z2345"
],
"tracking_url": "http://example.com/etracking/tracking.cgi?InquiryNumber1=1Z2345&TypeOfInquiryNumber=T&AcceptUPSLicenseAgreement=yes&submit=Track",
"tracking_urls": [
"http://track-example.com/startairmail.php?code=112345Z2345"
],
"variant_inventory_management": "shopbase"
}